import { defineStore } from "pinia";
export const usePageStore = defineStore("pageStore", {
  state: () => ({
    mainFold: false,
    mainId: "1",
    mainName: [],
    Finish: true
  }),
  actions: {},
  persist: {
    enabled: true,
    //配置存储方式，默认 sessionStorage 新建窗口会还原初始数据
    strategies: [
      {
        key: "pageStatus",
        storage: localStorage,
        paths: ["mainFold", "mainId"] //指定某个数据持久化存储，不指定则全部默认持久化
      }
    ]
  }
});
